package com.dyna.foundation.domain.resp;

import com.dyna.constants.DateFatter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("字典类型分页查询响应体")
public class SysDictTypeResp {

    @ApiModelProperty(value = "字典类型编号", required = true, example = "1024")
    private Long id;

    @ApiModelProperty(value = "字典名称", required = true, example = "性别")
    private String name;

    @ApiModelProperty(value = "字典类型", required = true, example = "sys_common_sex")
    private String type;

    @ApiModelProperty(value = "状态，参见 CommonStatusEnum 枚举类", required = true, example = "1")
    private Integer status;

    @ApiModelProperty(value = "备注", example = "快乐的备注")
    private String remark;

    @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime createTime;

}
